package com.romotc.qqrobot.webqq.qqInterfaceCatching;

import java.io.IOException;
import java.util.ArrayList;
import java.util.Map;

import com.romotc.qqrobot.bean.QQLogedin;
import com.romotc.qqrobot.webqq.WebQQConstant;
import com.romotc.scache.RequestSpy;
import com.romotc.scache.WebConnection;


/**
 * 虚拟QQ拦截器基类
 * @author Administrator
 *
 */
public abstract class CustService_QQUrlBodyCatching extends QQUrlBodyCatching {

	@Override
	public boolean checkChatchingCondition(RequestSpy requestSpy) {
		QQLogedin curQQ = QQLogedin.getCurQqLogedIn(requestSpy);
		if(curQQ != null && curQQ.getCsId() > 0) {
			//是虚拟号码
			return true;
		}
		return false;
	}



	@Override
	boolean isGoOn(RequestSpy requestSpy) {
		return false;
	}

	/**
	 * 虚拟QQ直接前置拦截 不需要修改响应信息
	 */
	@Override
	public boolean modifyResponse(WebConnection wc, RequestSpy rqSpy)
			throws IOException {
		// TODO Auto-generated method stub
		return false;
	}

}
